package com.huawei.hwid.core.datatype;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import java.io.IOException;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

public class UserLoginInfo implements Parcelable {
    public static final Creator<UserLoginInfo> CREATOR = new Creator<UserLoginInfo>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return a(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return a(i);
        }

        public UserLoginInfo a(Parcel parcel) {
            UserLoginInfo userLoginInfo = new UserLoginInfo();
            userLoginInfo.h = parcel.readString();
            userLoginInfo.d = parcel.readString();
            userLoginInfo.f = parcel.readString();
            userLoginInfo.e = parcel.readString();
            userLoginInfo.g = parcel.readString();
            userLoginInfo.b = parcel.readString();
            userLoginInfo.c = parcel.readString();
            userLoginInfo.a = parcel.readString();
            return userLoginInfo;
        }

        public UserLoginInfo[] a(int i) {
            return new UserLoginInfo[i];
        }
    };
    public static final String TAG_LASTLOGINTIME = "lastLoginTime";
    public static final String TAG_LAST_LOGINIP = "lastLoginIP";
    public static final String TAG_REGISTERCLIENT_IP = "registerClientIP";
    public static final String TAG_REGISTERFROM = "registerFrom";
    public static final String TAG_REGISTERTIME = "registerTime";
    public static final String TAG_REGISTER_CLIENTTYPE = "registerClientType";
    public static final String TAG_UNREGISTERTIME = "unRegisterTime";
    public static final String TAG_USER_ID = "userID";
    private String a;
    private String b;
    private String c;
    private String d;
    private String e;
    private String f;
    private String g;
    private String h;

    public static void getUserLoginInfoInTag(XmlPullParser xmlPullParser, UserLoginInfo userLoginInfo, String str) throws XmlPullParserException, IOException {
        if (xmlPullParser != null && userLoginInfo != null && str != null) {
            if ("userID".equals(str)) {
                userLoginInfo.a(xmlPullParser.nextText());
            } else if (TAG_REGISTERTIME.equals(str)) {
                userLoginInfo.b(xmlPullParser.nextText());
            } else if (TAG_UNREGISTERTIME.equals(str)) {
                userLoginInfo.c(xmlPullParser.nextText());
            } else if (TAG_LASTLOGINTIME.equals(str)) {
                userLoginInfo.d(xmlPullParser.nextText());
            } else if (TAG_REGISTER_CLIENTTYPE.equals(str)) {
                userLoginInfo.e(xmlPullParser.nextText());
            } else if (TAG_LAST_LOGINIP.equals(str)) {
                userLoginInfo.h(xmlPullParser.nextText());
            } else if (TAG_REGISTERCLIENT_IP.equals(str)) {
                userLoginInfo.f(xmlPullParser.nextText());
            } else if (TAG_REGISTERFROM.equals(str)) {
                userLoginInfo.g(xmlPullParser.nextText());
            }
        }
    }

    private void a(String str) {
        this.a = str;
    }

    private void b(String str) {
        this.b = str;
    }

    private void c(String str) {
        this.c = str;
    }

    private void d(String str) {
        this.d = str;
    }

    private void e(String str) {
        this.e = str;
    }

    private void f(String str) {
        this.f = str;
    }

    private void g(String str) {
        this.g = str;
    }

    private void h(String str) {
        this.h = str;
    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.h);
        parcel.writeString(this.d);
        parcel.writeString(this.f);
        parcel.writeString(this.e);
        parcel.writeString(this.g);
        parcel.writeString(this.b);
        parcel.writeString(this.c);
        parcel.writeString(this.a);
    }
}
